/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.leadiv.ai.neuralnet;

import java.util.Vector;

/**
 *
 * @author pborrego
 */
public class SNeuronLayer {
	//the number of neurons in this layer
	public int m_NumNeurons;

	//the layer of neurons
	public Vector<SNeuron> m_vecNeurons = new Vector<SNeuron>();

        //---------------------------------------------------------------------
        // ctor creates a layer of neurons of the required size by calling the 
        // SNeuron ctor the rqd number of times
        //---------------------------------------------------------------------
        public SNeuronLayer(int NumNeurons, int NumInputsPerNeuron)
        {
            m_NumNeurons = NumNeurons;
            
            for (int i=0; i<NumNeurons; ++i)
            {
                m_vecNeurons.add(new SNeuron(NumInputsPerNeuron));
            }
        }
}